package com.woniu.client;

import com.woniu.config.FeignLogConfiguration;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "erp-wavehouse", qualifier = "orderPtoject", configuration = FeignLogConfiguration.class)
public interface ProjectClient {

    @PostMapping("/projectOut")
    public ResponseEntity<Integer> projectOut(@RequestParam("code")String code, @RequestParam("num")Integer num);

    /**
     * 根据产品id查询产品code
     * @return
     */
    @GetMapping("/getProjectCodeById")
    public ResponseEntity<String> getProjectCodeById(@RequestParam("id") Integer id);
}
